const express = require("express");
const app = express();

// 局部中间件
app.get(
  "/zks",
  [
    (req, res, next) => {
      console.log("第1个中间件");

      next();
    },
    (req, res, next) => {
      console.log("第二个中间件");
      next();
    },
  ],
  function (req, res) {
    res.status(200).json({ message: "dad" + req.name });
  }
);
app.listen(9455);
